package hhh.babysleep.presenter.base;

import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;

/**
 * Created by Administrator on 2017/6/26 0026.
 */
public abstract class BasePresenter<V extends IView> implements IPresenter<V> {
    CompositeDisposable compositeDisposable=new CompositeDisposable();

    public void unSubscribe(){
        compositeDisposable.clear();
    }

    public void register(Disposable disposable){
        compositeDisposable.add(disposable);
    }
}
